package com.example.class1.Controller;

import com.example.class1.Service.UserService;
import com.example.class1.Service.impl.UserServiceImpl;
import com.example.class1.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/User")
public class UserController {

    @Autowired
    UserService userService;

    @RequestMapping("/select")
    public List<User> select() {
        return userService.select();
    }

    @RequestMapping("/find")
    public List<User> find() {
        return userService.find();
    }

}
